package com.antdesignbackend.backend.information.mechanism.service.impl;


import com.antdesignbackend.backend.information.mechanism.entity.entityVo.MechanismVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.antdesignbackend.backend.information.mechanism.mapper.MechanismMapper;
import com.antdesignbackend.backend.information.mechanism.entity.Mechanism;
import com.antdesignbackend.backend.information.mechanism.service.MechanismService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


@Service
public class MechanismServiceImpl extends ServiceImpl<MechanismMapper, Mechanism> implements MechanismService {
    @Autowired
    MechanismMapper mechanismMapper;

    @Override
    public List<MechanismVo> search(QueryWrapper<MechanismVo> queryWrapper, Page<MechanismVo> page) {
        return mechanismMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<MechanismVo> queryWrapper) {
        return mechanismMapper.count(queryWrapper);
    }
}
